function embedshortcode() {
	
	var shortcodetext;
	var style = document.getElementById('shortcode_panel');
	

	if (style.className.indexOf('current') != -1) {
		var selected_shortcode = document.getElementById('style_shortcode').value;

	switch (selected_shortcode){
		//headings
		case "h1": shortcodetext = '[h1 color=" "] Content goes here... [/h1]<br/>'; 
			break;
		case "h2": shortcodetext = '[h2 color=" "] Content goes here... [/h2]<br/>';
			break;
		case "h3": shortcodetext = '[h3 color=" "] Content goes here... [/h3]<br/>';
			break;
		case "h4": shortcodetext = '[h4 color=" "] Content goes here... [/h4]<br/>';
			break;
		case "h5": shortcodetext = '[h5 color=" "] Content goes here... [/h5]<br/>';
			break;
		case "h6": shortcodetext = '[h6 color=" "] Content goes here... [/h6]<br/>';
			break;
		case "capitalize": shortcodetext = '[capitalize bgcolor="" fontcolor=""] Content goes here... [/capitalize]';
			break;
		case "link": shortcodetext = '[link url="your-url.com" alt="alternative text" target="_blank" color=""]Link text goes here...[/link]<br/>';
			break;
		//notification boxes
		case "notify_success": shortcodetext = '[notify_success] Content goes here... [/notify_success]<br/> ';
			break;
		case "notify_error": shortcodetext = '[notify_error] Content goes here... [/notify_error]<br/>';
			break;
		case "notify_warning": shortcodetext = '[notify_warning] Content goes here... [/notify_warning]<br/>';
			break;
		case "notify_info": shortcodetext = '[notify_info] Content goes here... [/notify_info]<br/>';
			break;
		//dividers
		case "horizontal_divider": shortcodetext = '[hr]<br/>';
			break;
		case "horizontal_divider_dot": shortcodetext = '[hr_dot width="auto"]<br/>';
			break;
		//columns
		case "one_column": shortcodetext = '[div][one_oneth] Content of single column goes here... [/one_oneth][/div]<br/><br/>';
			break;
		case "two_columns": shortcodetext = '[div][one_half] Content of column #1 goes here... [/one_half]<br/>[one_half_last] Content of column #2 goes here... [/one_half_last][/div]<br/>';
			break;
		case "three_columns": shortcodetext = '[div][one_third] Content of column #1 goes here... [/one_third]<br/>[one_third] Content of column #2 goes here... [/one_third]<br/>[one_third_last] Content of column #3 goes here... [/one_third_last][/div]<br/>';
			break;
		case "four_columns": shortcodetext = '[div][one_fourth] Content of column #1 goes here... [/one_fourth]<br/>[one_fourth] Content of column #2 goes here... [/one_fourth]<br/>[one_fourth] Content of column #3 goes here... [/one_fourth]<br/>[one_fourth_last] Content of column #4 goes here... [/one_fourth_last][/div]<br/>';
			break;
		case "one_fourth_three_fourth_columns": shortcodetext = '[div][one_fourth] Content of column #1 goes here... [/one_fourth]<br/>[three_fourth_last] Content of column #2 goes here... [/three_fourth_last][/div]<br/>';
			break;
		case "three_fourth_one_fourth_columns": shortcodetext = '[div][three_fourth] Content of column #1 goes here... [/three_fourth]<br/>[one_fourth_last] Content of column #2 goes here... [/one_fourth_last][/div]<br/>';
			break;
		case "two_thirds_one_third_columns": shortcodetext = '[div][two_third] Content of column #1 goes here... [/two_third]<br/>[one_third_last] Content of column #2 goes here... [/one_third_last][/div]';
			break;
		case "one_third_two_thirds_columns": shortcodetext = '[div][one_third] Content of column #1 goes here... [/one_third]<br/>[two_third_last] Content of column #2 goes here... [/two_third_last][/div]';
			break;
		case "one_half_one_fourth_one_fourth": shortcodetext = '[div][one_half] Content of column #1 goes here... [/one half]<br/>[one_fourth] Content of column #2 goes here... [/one_fourth]<br/>[one_fourth_last] Content of column #3 goes here... [/one_fourth_last][/div]<br/>';
			break;
		case "one_fourth_one_half_one_fourth": shortcodetext = '[div][one_fourth] Content of column #1 goes here... [/one_fourth]<br/>[one_half] Content of column #2 goes here... [/one_half]<br/>[one_fourth] Content of column #3 goes here... [/one_fourth][/div]<br/>';
			break;
		case "one_fourth_one_fourth_one_half": shortcodetext = '[div][one_fourth] Content of column #1 goes here... [/one_fourth]<br/>[one_fourth] Content of column #2 goes here... [/one_fourth]<br/>[one_half_last] Content of column #3 goes here... [/one_half_last][/div]<br/>';
			break;
		//features {accordion, tabs, button}
		case "accordion": shortcodetext = '[accordion title="accordion title" width="400px"]<br/><br/>[accordion_panel title="panel title"]<br/>Content of this panel goes here...<br/>[/accordion_panel]<br/><br/>[accordion_panel title="panel title"]<br/>Content of this panel goes here...<br/>[/accordion_panel]<br/><br/>[accordion_panel title="panel title"]<br/>Content of this panel goes here...<br/>[/accordion_panel]<br/><br/>[/accordion]<br/>';
			break;
		case "tabs": shortcodetext = '[tabs title="tabs" width="400px" howmany="'+document.getElementById('howManyTabs').value+'"]<br/><br/>';
					 for (var i=0; i< document.getElementById('howManyTabs').value; i++){
					 	shortcodetext += '[tabs_panel title="tab title"]<br/>Content of this tab #'+(i+1)+' goes here...<br/>[/tabs_panel]<br/><br/>';
					 }
					 shortcodetext += '[/tabs]';
			break;
		case "button": shortcodetext = '[button pre_styled="blue|green|orange|red|yellow" bg_color="" font_color="" bg_hover_color="" font_hover_color="" padding="" href="" width=""] Button Text goes here [/button]<br/>';
			break;
		//media {image,youtube video}
		case "image": shortcodetext = '[image url="location of your image" alt="alernative text" href="optional" resize="true|false" width="300px" height="200" top="5px" left="5px" bottom="5px"]<br/>';
			break;
		case "video": shortcodetext = '[video url="youtube links only" resize="true|false" width="400px" height="300px"]<br/>';
			break;
		//ul's and li's
		case "ul": shortcodetext = '[ul type="check|arrow|dot|corner|star" color="blue|green|orange|red|yellow"]<li>Content</li><li>goes</li><li>here..</li>[/ul]<br/>';
			break;
		case "li": shortcodetext = '[li type="check|arrow|dot|corner|star" color="blue|green|orange|red|yellow"]Content goes here...[/li]<br/>';
			break;
		case "fullsize_container": shortcodetext = '[container_fullsize]<br/> Content goes here... <br/>[/container_fullsize]<br/>';
			break;
		case "cornered_container": shortcodetext = '[container_cornered]<br/> Content goes here... <br/>[/container_cornered]<br/>';
			break;
		case "vertical_container": shortcodetext = '[container_vertical]<br/> Content goes here... <br/>[/container_vertical]<br/>';
			break;
		case "simple_container": shortcodetext = '[container_simple]<br/> Content goes here... <br/>[/container_simple]<br/>';
			break;
	}

		

	if ( selected_shortcode == 0 ){tinyMCEPopup.close();}}
	if (window.tinyMCE) {
		window.tinymce.execInstanceCommand('content', 'mceInsertContent', true, shortcodetext);
		tinyMCEPopup.editor.execCommand('mceRepaint');
		tinyMCEPopup.close();
	} return;
}


/*

*/